CREATE TABLE [dbo].[DnnProduct_Urls]
(
[UrlID] [int] NOT NULL IDENTITY(1, 1),
[PortalID] [int] NULL,
[Url] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DnnProduct_Urls] ADD CONSTRAINT [PK_DnnProduct_Urls] PRIMARY KEY CLUSTERED  ([UrlID]) WITH (FILLFACTOR=85) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DnnProduct_Urls] ADD CONSTRAINT [IX_DnnProduct_Urls] UNIQUE NONCLUSTERED  ([Url], [PortalID]) WITH (FILLFACTOR=85) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DnnProduct_Urls] WITH NOCHECK ADD CONSTRAINT [FK_DnnProduct_Urls_DnnProduct_Portals] FOREIGN KEY ([PortalID]) REFERENCES [dbo].[DnnProduct_Portals] ([PortalID]) ON DELETE CASCADE NOT FOR REPLICATION
GO
